/**
 * 
 */
package com.wsd.service.impl;

import java.util.List;

import com.wsd.bean.Link;
import com.wsd.dao.LinkDaoInterface;
import com.wsd.service.LinkService;

/**
 * @author Administrator
 *
 */
public class LinkServiceImpl implements LinkService {
	
	private LinkDaoInterface linkDao;
	
	public LinkDaoInterface getLinkDao() {
		return linkDao;
	}

	public void setLinkDao(LinkDaoInterface linkDao) {
		this.linkDao = linkDao;
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#deleteById(int)
	 */
	public void deleteById(int id) {
		linkDao.deleteById(id);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#findAll(int, int)
	 */
	public List<Link> findAll(int start, int limit) {
		return linkDao.findAll(start, limit);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#findAllCount()
	 */
	public int findAllCount() {
		return linkDao.findAllCount();
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#findById(int)
	 */
	public Link findById(int id) {
		return linkDao.findById(id);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#save(com.wsd.bean.Link)
	 */
	public void save(Link link) {
		linkDao.save(link);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.LinkService#update(com.wsd.bean.Link)
	 */
	public void update(Link link) {
		linkDao.update(link);
		
	}

}
